body{
    color: rebeccapurple;
}

.block{
    height: 300px;
    border: 1px solid gray;
}
.inner{
    margin: 0 50px;
    height: 300px;
   background: red;
   transform: translate(0px,-50%);
    
}